package cn.tedu.mall.order.mapper;

import cn.tedu.mall.pojo.order.dto.OrderListTimeDTO;
import cn.tedu.mall.pojo.order.model.OmsOrder;
import cn.tedu.mall.pojo.order.vo.OrderListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OmsOrderMapper {

    //新增订单
    void insertOrder(OmsOrder omsOrder);


    //查询当前用户指定实际范围内的所有订单--分页查询
    List<OrderListVO> selectOrderByTimes(OrderListTimeDTO orderListTimeDTO);

    //根据订单ID，修改订单
    void updateOrderById(OmsOrder omsOrder);
}
